﻿<phone:PhoneApplicationPage 
	x:Class="AVICFEEDSApp.OldMainPage"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
	xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
	xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
	xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
	mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768" 
	FontFamily="{StaticResource PhoneFontFamilyNormal}"
	FontSize="{StaticResource PhoneFontSizeNormal}"
	Foreground="{StaticResource PhoneForegroundBrush}"
	SupportedOrientations="Portrait"  Orientation="Portrait"
	shell:SystemTray.IsVisible="True">

	

	<Grid x:Name="LayoutRoot" Background="Transparent">

		<controls:Panorama Name="PanoramaControl" Title="AVIC FEEDS">

			<controls:Panorama.Background>
				<ImageBrush ImageSource="OldMainPageBackground.png" Opacity="0.3" />
			</controls:Panorama.Background>

			<controls:PanoramaItem Header="list">
				<StackPanel Height="Auto" Width="Auto">

					<TextBlock Name="ContactResultsLabel" Text="results are loading..." TextWrapping="Wrap" Style="{StaticResource PhoneTextLargeStyle}"  />

					<ListBox Name="ContactResultsData" ItemsSource="{Binding}" Height="Auto" Margin="5,0,5,0" toolkit:TiltEffect.IsTiltEnabled="True">
						<ListBox.ItemTemplate>
							<DataTemplate>
								<TextBlock Name="ContactResults" Text="{Binding Path=Key, Mode=OneWay}" Tag="{Binding Path=Value, Mode=OneWay}" Style="{StaticResource PhoneTextLargeStyle}" Margin="10" Tap="ContactResults_Tap" />
							</DataTemplate>
						</ListBox.ItemTemplate>
					</ListBox>
				</StackPanel>
			</controls:PanoramaItem>

			<controls:PanoramaItem Name="panoramaItemSearch" Header="search">
				<StackPanel Margin="0,10,0,0">
					
					<!--<TextBlock Margin="10,0" TextWrapping="Wrap" Text="SEARCH BY ADDRESS" />
					<TextBox Name="AddressSearch" Text="Enter address..." Width="480" GotFocus="AddressSearch_GotFocus" KeyUp="AddressSearch_KeyUp" LostFocus="AddressSearch_LostFocus" />-->
						
					<Button BorderBrush="{x:Null}" Tap="AddressSearchButton_Tap" VerticalContentAlignment="Center" HorizontalAlignment="Left" Padding="0">
						<StackPanel Orientation="Horizontal">
							<Image Width="65" Height="65" Stretch="UniformToFill" Source="appbar.feature.search.rest.png"/>
							<TextBlock VerticalAlignment="Center">Search by address</TextBlock>
						</StackPanel>
					</Button>
					
					<TextBlock Margin="10,40,0,0" Name="AddressSearchLabel" IsHitTestVisible="False"><Run Text="SEARCH NEARBY" /></TextBlock>
					<TextBox Name="POISearch" Text="Enter name..." Width="480" InputScope="Text" GotFocus="POISearch_GotFocus" LostFocus="POISearch_LostFocus" KeyUp="POISearch_KeyUp" />
					<TextBlock Margin="10,0" TextWrapping="Wrap" Text="Swipe over to the apps pivot and tap AVIC FEEDS to save the location." Style="{StaticResource PhoneTextSubtleStyle}" />

				</StackPanel>
			</controls:PanoramaItem>

			<controls:PanoramaItem Header="about">
				<StackPanel>
					<TextBlock Height="Auto" HorizontalAlignment="Left" Margin="10,10,0,0" Name="aboutText" VerticalAlignment="Top" TextWrapping="Wrap" Width="Auto">
						<Run Text="This application was privately developed and is not affiliated with the Pioneer Corporation." />
						<LineBreak />
						<LineBreak />
						<Run Text="PIONEER, AVIC FEEDS are trademarks or registered trademarks of Pioneer Corporation." />
						<LineBreak />
						<LineBreak />
						<Run Text="All other brand, product names, or logos may be trademarks or registered trademarks of their respective holders." />
					</TextBlock>
				</StackPanel>
			</controls:PanoramaItem>

		</controls:Panorama>

	</Grid>

</phone:PhoneApplicationPage>